import request from '@/utils/request'

/**
 * wallet-index
 * @param {*} data
 * @returns
 */
export function getAccountDetail(data) {
  return request({
    url: '/api/getAccountDetail',
    method: 'post',
    data
  })
}

// deposit
export function toRecharge(data) {
  return request({
    url: '/api/toRecharge',
    method: 'post',
    data
  })
}

// 
export function queryAssetsList(data) {
  return request({
    url: '/api/queryAssetsList',
    method: 'post',
    data
  })
}

export function queryTransferList(data) {
  return request({
    url: '/api/queryTransferList',
    method: 'post',
    data
  })
}

// toWithDraw
export function toWithDraw(data) {
  return request({
    url: '/api/toWithDraw',
    method: 'post',
    data
  })
}

export function withdraw(data) {
  return request({
    url: '/api/withdraw',
    method: 'post',
    data
  })
}

// queryWithdrawList
export function queryWithdrawList(data) {
  return request({
    url: '/api/queryWithdrawList',
    method: 'post',
    data
  })
}

// queryRechargeList
export function queryRechargeList(data) {
  return request({
    url: '/api/queryRechargeList',
    method: 'post',
    data
  })
}

export function sendWithdrawSMS(data) {
  return request({
    url: '/api/sendWithdrawSMS',
    method: 'post',
    data
  })
}

/**
 * transfer
 */
export function transfer(data) {
	return request({
		url: '/api/transfer',
		method: 'post',
		data
	})
}

/**
 * @param {Object} data
 */
export function queryMyPledgeDetail(data) {
	return request({
		url: '/api/node/queryMyPledgeDetail',
		method: 'post',
		data
	})
}